package com.winz.cultureapp.fragment;

import android.os.Bundle;
import android.widget.ImageView;

import com.winz.cultureapp.R;
import com.winz.cultureapp.base.BaseFragment;

import butterknife.BindView;

/**
 * ViewPager 的Fragment
 */
public class WelcomeVPFragment extends BaseFragment {

    @BindView(R.id.iv_wel)
    public ImageView mIV_wel;


    @Override
    protected int contentView() {
        return R.layout.vp_wel_fragment;
    }


    public static WelcomeVPFragment getInstance(int resId) {
        WelcomeVPFragment fragment = new WelcomeVPFragment();
        Bundle bundle = new Bundle();
        bundle.putInt("welcome_fragment", resId);
        fragment.setArguments(bundle);
        return fragment;
    }

    @Override
    protected void initEvents() {
        super.initEvents();
    }

    @Override
    protected void getDatas(Bundle arguments) {
        int resId = arguments.getInt("welcome_fragment");
        mIV_wel.setImageResource(resId);
    }


}
